home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15497 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: ix.netcom.com!news
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: underscore _var ?
  5. Date: Fri, 19 Apr 1996 04:05:19 GMT
  6. Organization: Netcom
  7. Message-ID: <31770eba.106174330@nntp.ix.netcom.com>
  8. References: <4l6d3o$ne0@mulga.cs.mu.OZ.AU>
  9. NNTP-Posting-Host: ix-dc13-16.ix.netcom.com
  10. X-NETCOM-Date: Thu Apr 18 11:05:08 PM CDT 1996
  11. X-Newsreader: Forte Agent .99d/32.182
  12.  
  13. simc@mundil.cs.mu.OZ.AU (Falchion) wrote:
  14.  
  15. > What is an underscore at the start of
  16. > a function name or variable supposed 
  17. > to indicate?
  18. > eg.    int    _num;
  19. >     int    _somefunction();
  20. > -- Simon
  21. > simc@mundil.cs.mu.oz.au
  22.  
  23. Such names are reserved with external linkage.  Most implementations
  24. use these for internal runtime functions or for non-standard
  25. functions.
  26.  
  27. You can use them for names without external linkage (i.e., statics and
  28. locals), but there's no agreed upon meaning and really no good reason
  29. to use them,  except where they are needed to access nonstandard
  30. features of the implementation.
  31.  
  32. Michael M Rubenstein
  33.